package nbcp.db.mysql

import nbcp.base.extend.*
import nbcp.base.utils.MyUtil
import nbcp.db.mysql.entity.s_annex
import nbcp.db.mysql.entity.s_user
import java.io.File
import java.io.FileWriter
import java.lang.reflect.ParameterizedType
import java.time.LocalDateTime
import kotlin.collections.HashMap


/**
 * Created by udi on 17-6-11.
 */
internal class GenerateSql_Dbr {
    fun main() {

        var path = Thread.currentThread().contextClassLoader.getResource("").path.split("/target/")[0];

        nbcp.db.mysql.tool.generator().work(
                File(path).parentFile.path + "/shop-orm/kotlin/nbcp/db/mysql/dbr_tables.kt",
                "nbcp.db.mysql.entity.",
                s_annex::class.java
        )
    }
}